//
//  PPTimelineMessageObject.h
//  pickpic
//
//  Created by Jinxiao on 10/6/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "PPTimelineCommentObject.h"
#import "PPTimelinePictureObject.h"

#import "PPAlbumObject.h"

@class DGCoreTextEditor;

typedef NS_ENUM(NSUInteger, PPTimelineMessageType) {
    PPTimelineMessageTypeUnknown = 0,
    PPTimelineMessageTypeComment,
    PPTimelineMessageTypeLike,
    PPTimelineMessageTypeFavorite,
    PPTimelineMessageTypeFollow,
    PPTimelineMessageTypePickpic
};

@interface PPTimelineMessageObject : NSObject

@property (readwrite, nonatomic, assign) PPTimelineMessageType type;

@property (readwrite, nonatomic, strong) PPTimelineCommentObject *comment;

@property (readwrite, nonatomic, strong) NSDate *date;

@property (readwrite, nonatomic, strong) NSString *brief;

@property (readwrite, nonatomic, strong) PPTimelineUserObject *user;

@property (readwrite, nonatomic, strong) PPAlbumObject *album;

@property (readwrite, nonatomic, strong) PPTimelinePictureObject *picture;

@property (readwrite, nonatomic, strong) DGCoreTextEditor *editor;

+ (instancetype)messageForParameters:(NSDictionary *)parameters;

@end
